<?php
require('fpdf/fpdf.php');
class MyPDF extends FPDF{
	
	function esImpar( $numero) {
		return $numero & 1; // 0 = es par, 1 = es impar
	}
	
	function AcceptPageBreak(){
		if( $this->esImpar( $this->PageNo())){
			$this->SetMargins(14,38,38);
			return true;
		}else{
			$this->SetMargins(38,38,14);
			return true;
		}
	}
}
?>